package cn.donting.jme.edit.event;

import com.jme3.scene.Spatial;
import lombok.Getter;

import java.util.EventObject;

/**
 * 选中一个 spatial
 */
@Getter
public class SelectSpatialEvent extends EventObject {

    private Spatial spatial;
    /**
     * Constructs a prototypical Event.
     *
     * @param source The object on which the Event initially occurred.
     * @throws IllegalArgumentException if source is null.
     */
    public SelectSpatialEvent(Spatial spatial,Object source) {
        super(source);
        this.spatial=spatial;
    }
}
